package jp.ne.hatena.d.digitalsoul.warikan.web

import org.apache.wicket.protocol.http.WebApplication

import jp.ne.hatena.d.digitalsoul.warikan.pages.TopPage

class WarikanApplication extends WebApplication {
	
	def getHomePage = classOf[TopPage]
	
	override def init() = {
		super.init
		val resourceSettings = getResourceSettings
		resourceSettings.addResourceFolder("WEB-INF/pages")
		val locator = new HtmlFileLocator("jp/ne/hatena/d/digitalsoul/warikan/pages")
		resourceSettings.setResourceStreamLocator(locator)
	}

}